package com.legal.aid.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.aid.common.annotation.Excel;
import com.legal.aid.common.core.domain.BaseEntity;

/**
 * 新闻资讯对象 z_news
 * 
 * @author ruoyi
 * @date 2025-05-27
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻id */
    private Long newsId;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subtitle;

    /** 封面图url */
    @Excel(name = "封面图url")
    private String coverImageUrl;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String newsContent;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 是否已发布(0 表示未发布，1 表示已发布) */
    private String isPublished;

    /** 新闻类别'1业内资讯','2法律速递','3企业新闻','4视频' */
    @Excel(name = "新闻类别'1业内资讯','2法律速递','3企业新闻','4视频'")
    private String newsCategory;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /** 是否置顶（0-否 1-是） */
    private String isTop;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 修改人 */
    private String updatedBy;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }

    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }

    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }

    public void setCoverImageUrl(String coverImageUrl) 
    {
        this.coverImageUrl = coverImageUrl;
    }

    public String getCoverImageUrl() 
    {
        return coverImageUrl;
    }

    public void setNewsContent(String newsContent) 
    {
        this.newsContent = newsContent;
    }

    public String getNewsContent() 
    {
        return newsContent;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }

    public void setIsPublished(String isPublished) 
    {
        this.isPublished = isPublished;
    }

    public String getIsPublished() 
    {
        return isPublished;
    }

    public void setNewsCategory(String newsCategory) 
    {
        this.newsCategory = newsCategory;
    }

    public String getNewsCategory() 
    {
        return newsCategory;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setIsTop(String isTop) 
    {
        this.isTop = isTop;
    }

    public String getIsTop() 
    {
        return isTop;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsTitle", getNewsTitle())
            .append("subtitle", getSubtitle())
            .append("coverImageUrl", getCoverImageUrl())
            .append("newsContent", getNewsContent())
            .append("author", getAuthor())
            .append("publishDate", getPublishDate())
            .append("isPublished", getIsPublished())
            .append("newsCategory", getNewsCategory())
            .append("viewCount", getViewCount())
            .append("isTop", getIsTop())
            .append("publishTime", getPublishTime())
            .append("createdTime", getCreatedTime())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
